export interface ResponseData {
  code: number
  message: string
  ok: boolean
}
//sku数据类型
export interface SkuData {
  isSale: number
  id?: number
  category3Id?: string | number
  spuId?: string | number
  tmId?: string | number
  skuName?: string
  price?: string | number
  weight?: string | number
  skuDesc?: string //sku描述
  skuAttrValueList?: Attr[] //平台属性收集
  skuSaleAttrValueList?: saleAttr[] //销售属性
  skuDefaultImg?: string //sku图片地址
}

export interface Attr {
  attrId: number | string //平台属性id
  valueId: number | string //属性值id
  id?: number
}
export interface saleAttr {
  saleAttrId: number | string
  saleAttrValueId: number | string
  id?: number
}
//获取sku接口返回数据的类型
export interface SkuResponseData extends ResponseData {
  data: {
    records: SkuData[]
    total: number
    size: number
    current: number
    orders: []
    optimizeCountSql: boolean
    hitCount: boolean
    countId: null
    maxLimit: null
    searchCount: boolean
    pages: number
  }
}
//获取商品详情的接口数据类型
export interface SkuInfoData extends ResponseData {
  data: SkuData
}
